#pragma once

typedef int SetType;
typedef int ElementType;
typedef struct UnionFind* UF;
struct UnionFind {
	ElementType* arr;
	int CC;
	int size;

};
UF Initilailize(int size);
void Union(UF uf, SetType root1, SetType root2);
SetType Find(UF uf, ElementType X);